package com.kim.authorization.server.controller;

import com.kim.authorization.server.config.util.AuthProperties;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 授权码登录Controller
 */
@Controller
public class AuthController {

    /**
     * 授权码登录页跳转
     * @return java.lang.String
     */
    @RequestMapping(AuthProperties.LOGIN_PAGE)
    public String loginPage(Model model) {
        model.addAttribute("loginProcessUrl", AuthProperties.LOGIN_PROCESS_URL);
        return "login";
    }

}
